[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Marco Patzer
On Tue, 5 Dec 2023 20:06:46 +0100 Wolfgang Schuster wrote: > > That doesn't make sense, inch and mm are different units. I'd rather > > add: > > > >\registerunit > > [inHg=inchmercury] > > > >\setupunittext > > [en] > > [inchmercury=inHg] > > It's just a stupid example

[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Wolfgang Schuster
Marco Patzer schrieb am 05.12.2023 um 19:58: \setupunittext[en][millimetermercury=inHg] That doesn't make sense, inch and mm are different units. I'd rather add: \registerunit [inHg=inchmercury] \setupunittext [en] [inchmercury=inHg] It's just a stupid example to show

[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Marco Patzer
On Tue, 5 Dec 2023 17:27:59 +0100 Wolfgang Schuster wrote: > None of your examples work because millimetermercury and mercury are > the names for the labels > and the units are accessed with hg and mmhg. Ok, that makes sense. And it works, thanks for the explanation and the quick reply. >

[NTG-context] Re: \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Wolfgang Schuster
Marco Patzer schrieb am 05.12.2023 um 15:19: Hi! I'm struggling with the rendering of a particular liquid metal: %% renders as m (meter), not as Hg \unit{mercury} %% renders as mm·m, not as mmHg \unit{millimetermercury} This is strange, since both “mercury” and “millimetermercury

[NTG-context] \unit{mercury} renders as m (meter) and \unit{millimetermercury} doesn't work as expected

2023-12-05 Thread Marco Patzer
Hi! I'm struggling with the rendering of a particular liquid metal: %% renders as m (meter), not as Hg \unit{mercury} %% renders as mm·m, not as mmHg \unit{millimetermercury} This is strange, since both “mercury” and “millimetermercury” are defined in phys-dim.lua. To get mercury

Re: [NTG-context] [m-database] How to properly add module arguments?

2023-03-04 Thread Paul Mazaitis via ntg-context
On 26 Feb 2023, at 5:36, Max Chernoff via ntg-context wrote: > I'd recommend completely ignoring the interface i-*.xml files. They > don't do anything particularly useful for a third-party module. It's good to know there's no dependency there (but I do like to keep things updated :) ). > This

Re: [NTG-context] [m-database] How to properly add module arguments?

2023-02-26 Thread Max Chernoff via ntg-context
Hi Paul, > I added a stanza to the appropriate interface file: > > --- begin stanza added to i-database.xml --- > > I modeled that after the stanza for the argument `strip`. I think > that's the only thing I need to do in the interface file. I'd recommend completely ignoring the interface

[NTG-context] [m-database] How to properly add module arguments?

2023-02-25 Thread Paul Mazaitis via ntg-context
Dear list, ## The Incredibly Short Version I am trying to extend m-database, and I want to add a flag to control behavior. I can get it to work, but I am having trouble understanding how to do it properly. ## The Short Version I have a project where I wish to incorporate many CSV files

Re: [NTG-context] m-graph label

2022-07-30 Thread John Kitzmiller via ntg-context
On Tue, Jul 26, 2022 at 2:10 PM Alan wrote: > On Thu, 21 Jul 2022 17:56:45 -0400 > John Kitzmiller wrote: > > > (Apologies for double-dipping, but usage direction for the > > least-squares fit extension in m-graph would be a gift.) > > The least-squares fit (to a pol

Re: [NTG-context] m-graph label

2022-07-30 Thread John Kitzmiller via ntg-context
t; > > > > Thanks Alan. I see those lines in the module listing, but could you > > provide some guidance on usage? Can the (re)formatting be done from > > my input file, or do I need to modify mp-grap.mpiv, or some other way? > > > > (Apologies for double-di

Re: [NTG-context] m-graph label

2022-07-26 Thread Alan via ntg-context
On Thu, 21 Jul 2022 17:56:45 -0400 John Kitzmiller wrote: > (Apologies for double-dipping, but usage direction for the > least-squares fit extension in m-graph would be a gift.) The least-squares fit (to a polynomial) is a deterministic calculation, not an arbitrary non-linear

Re: [NTG-context] m-graph label

2022-07-26 Thread Alan via ntg-context
usage? Can the (re)formatting be done from > my input file, or do I need to modify mp-grap.mpiv, or some other way? > > (Apologies for double-dipping, but usage direction for the > least-squares fit extension in m-graph would be a gift.) You can set these strings in your source f

Re: [NTG-context] m-graph label

2022-07-21 Thread John Kitzmiller via ntg-context
be > > formatted? > > > > % -1 1 > > % 0 1 > > % 0 2 > > % 1 1 > > % 2 1 > > % 2 2 > > % 2 3 > > % 2 4 > > % 3 1 > > % 3 2 > > > > \usemodule[m-graph] > > \startMPpage[instance=graph, offset=5mm] > >

Re: [NTG-context] m-graph label

2022-07-20 Thread Alan via ntg-context
> % 0 1 > % 0 2 > % 1 1 > % 2 1 > % 2 2 > % 2 3 > % 2 4 > % 3 1 > % 3 2 > > \usemodule[m-graph] > \startMPpage[instance=graph, offset=5mm] > labeloffset:=3mm; > draw begingraph(8cm,4cm); > setrange(-1.5,0.5,3.5,5); > picture symbol ; > symbol

[NTG-context] m-graph label

2022-07-16 Thread John Kitzmiller via ntg-context
The horizontal axis label of mwe below has 0.0 (showing tenths; pdf attached; filename is mwe.tex). I expected it to show -1, 0, 1, 2, 3, (integers only). Can this be formatted? % -1 1 % 0 1 % 0 2 % 1 1 % 2 1 % 2 2 % 2 3 % 2 4 % 3 1 % 3 2 \usemodule[m-graph] \startMPpage[instance=graph, offset

Re: [NTG-context] Typo in m-tikz

2021-12-13 Thread Aditya Mahajan via ntg-context
On Mon, 13 Dec 2021, Hans Hagen wrote: > On 12/13/2021 7:19 PM, Aditya Mahajan via ntg-context wrote: > > On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote: > > > > > Hi, > > > > > > There is a typo in m-tikz.mkxl (possibly a carry-ov

Re: [NTG-context] Typo in m-tikz

2021-12-13 Thread Hans Hagen via ntg-context
On 12/13/2021 7:19 PM, Aditya Mahajan via ntg-context wrote: On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote: Hi, There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). The module ends with a spurious `\stopmodule`: https://github.com/contextgarden/context-mirror

Re: [NTG-context] Typo in m-tikz

2021-12-13 Thread Aditya Mahajan via ntg-context
On Mon, 13 Dec 2021, Aditya Mahajan via ntg-context wrote: > Hi, > > There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). The > module ends with a spurious `\stopmodule`: > > https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e

[NTG-context] Typo in m-tikz

2021-12-13 Thread Aditya Mahajan via ntg-context
Hi, There is a typo in m-tikz.mkxl (possibly a carry-over from t-tikz.tex). The module ends with a spurious `\stopmodule`: https://github.com/contextgarden/context-mirror/blob/fe714093ebb95e4a870282782e2124cff2e546e5/tex/context/modules/mkxl/m-tikz.mkxl#L113 (Or rather, the corresponding

[NTG-context] m-database module error since update

2021-12-05 Thread Jan-Erik Hägglöf via ntg-context
Since my update to LMTX 2021-12-03 the following error occured: tex error > tex error on line 41 in file /Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkiv/m-database.mkiv: Missing \endcsname inserted \endlocalcontrol \c !separa

Re: [NTG-context] m-ipsum broken

2021-01-24 Thread Hans Hagen
On 1/24/2021 2:10 AM, Jairo A. del Rio wrote: Hi, list Compiling m-ipsum yields an error in latest LMTX (2021.01.22 09:41) not only the latest i think ... lua became more strict on escapes over time ... i'll update the interface Hans

[NTG-context] m-ipsum broken

2021-01-23 Thread Jairo A. del Rio
Hi, list Compiling m-ipsum yields an error in latest LMTX (2021.01.22 09:41) Jairo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

[NTG-context] Fwd: Janus M. Nowacki

2020-06-15 Thread Henning Hraban Ramm
Quoted from: lilypond-u...@gnu.org I just wanted to let you know that Janus Nowacki, one of the founders of the TeX Gyre font suite, has recently died: http://www.gust.org.pl/news/jmn-obit-en And his personal website (in Polish): https://jmn.pl/ The TeX Gyre font project was started in 2006 to

[NTG-context] Specifying the cell column: are \TD[n] and \TD[m] broken?

2017-02-19 Thread Akira Kakuto
(Context Standalone, ver. 2017.01.27, ver. 2017.02.19) and in context from TeX Live 2016 (ver. 2016.05.17) these two examples give identical tables that differ from results on the wiki page. Confirmed. ConTeXt mkii gives results on the wiki page. Best, Akira

[NTG-context] Specifying the cell column: are \TD[n] and \TD[m] broken?

2017-02-19 Thread Vladimir Lomov
[n=5] d5 \eTD\bTD[n=7] d7 \eTD\eTR \bTR\bTD f1 \eTD\bTD[n=4] f4 \eTD\bTD[n=5] f5 \eTD\bTD[n=7] f7 \eTD\eTR \eTABLE 8< - and 8< - \bTABLE[width=3em] \bTR\bTD d1 \eTD\bTD[m=2] d2 \eTD\bTD[m=5] d5 \e

Re: [NTG-context] Overfull boxes using m-cweb

2016-01-26 Thread Ibn Saeed
Hans Hagen wxs.nl> writes: > it may be a result of many unbreakable (key)words, so in that case try: > > \setuptolerance[verytolerant,stretch] > > Hans > Thanks Hans, I was having some issue with overfull boxe in one paragraph, i applied your command and it solved the issue.

Re: [NTG-context] m-graph read data and plot

2015-08-21 Thread Hans Hagen
On 8/14/2015 4:39 AM, Alan BRASLAU wrote: On Thu, 13 Aug 2015 22:31:23 +0200 Hans Hagen pra...@wxs.nl wrote: an apetizer: \usemodule[graph] \startluacode No such juicy appetizers except for those who will be attending the ConTeXt meeting! ok, a temporary embargo on neat tricks then Hans

Re: [NTG-context] m-graph read data and plot

2015-08-13 Thread Hans Hagen
On 8/13/2015 9:37 PM, John Kitzmiller wrote: On Aug 9, 2015, at 8:38 AM, Alan BRASLAU alan.bras...@cea.fr mailto:alan.bras...@cea.fr wrote: One needs to think about closing the data file as ConTeXt opens a single MP instance that is run throughout the entire document AND over its multiple

Re: [NTG-context] m-graph read data and plot

2015-08-13 Thread John Kitzmiller
On Aug 9, 2015, at 8:38 AM, Alan BRASLAU alan.bras...@cea.fr wrote: One needs to think about closing the data file as ConTeXt opens a single MP instance that is run throughout the entire document AND over its multiple runs. If the file is left open, a second run will try to read on from the

Re: [NTG-context] m-graph read data and plot

2015-08-13 Thread Alan BRASLAU
On Thu, 13 Aug 2015 22:31:23 +0200 Hans Hagen pra...@wxs.nl wrote: an apetizer: \usemodule[graph] \startluacode No such juicy appetizers except for those who will be attending the ConTeXt meeting! Alan ___ If

Re: [NTG-context] m-graph read data and plot

2015-08-13 Thread Hans Hagen
On 8/13/2015 9:37 PM, John Kitzmiller wrote: On Aug 9, 2015, at 8:38 AM, Alan BRASLAU alan.bras...@cea.fr mailto:alan.bras...@cea.fr wrote: One needs to think about closing the data file as ConTeXt opens a single MP instance that is run throughout the entire document AND over its multiple

Re: [NTG-context] m-graph read data and plot

2015-08-09 Thread Alan BRASLAU
to work using m-graph? http://ctan.org/tex-archive/systems/doc/metapost/source-manual http://ctan.org/tex-archive/systems/doc/metapost/source-manual Thanks again, John \usemodule [graph] \startMPpage [instance=graph] draw begingraph(3in,2in); glabel.lft(btex \vbox{\hbox{Quadrillions}\hbox

Re: [NTG-context] m-graph read data and plot

2015-08-07 Thread Alan BRASLAU
:30 PM, John Kitzmiller wrote: Given a file, data.d, containing 1 4 7 I expected the following code to draw a line from (4,1) to (7,1)… \enabletrackers[metapost.showlog] \usemodule[m-graph] \startMPpage[instance=graph,offset=3mm] draw begingraph(5cm,5cm); gdata(data.d, v

Re: [NTG-context] m-graph read data and plot

2015-08-07 Thread John Kitzmiller
Thank you Alan. setrange is the key I had not tried and I will be more careful with (2). This may not be the proper way to ask, but it is related to the topic: how to get Hobby’s Figure 9 from the mpgraph manual to work using m-graph? http://ctan.org/tex-archive/systems/doc/metapost/source

Re: [NTG-context] m-graph read data and plot

2015-08-06 Thread John Kitzmiller
On Aug 6, 2015, at 12:59 PM, Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl wrote: On 8/6/2015 5:30 PM, John Kitzmiller wrote: Given a file, data.d, containing 1 4 7 I expected the following code to draw a line from (4,1) to (7,1)… \enabletrackers[metapost.showlog] \usemodule[m-graph

Re: [NTG-context] m-graph read data and plot

2015-08-06 Thread Hans Hagen
On 8/6/2015 5:30 PM, John Kitzmiller wrote: Given a file, data.d, containing 1 4 7 I expected the following code to draw a line from (4,1) to (7,1)… \enabletrackers[metapost.showlog] \usemodule[m-graph] \startMPpage[instance=graph,offset=3mm] draw begingraph(5cm,5cm); gdata(data.d, v

[NTG-context] m-graph read data and plot

2015-08-06 Thread John Kitzmiller
Given a file, data.d, containing 1 4 7 I expected the following code to draw a line from (4,1) to (7,1)… \enabletrackers[metapost.showlog] \usemodule[m-graph] \startMPpage[instance=graph,offset=3mm] draw begingraph(5cm,5cm); gdata(data.d, v, for n = 1 upto 3: a[n

[NTG-context] m-steps on mkiv

2014-01-28 Thread DesdeChaves
Some features of m-steps does not work in mkiv. For example, I can not change colors and the shapes (first example), add steps from the cell (n) to the cell (n+m, m=2,3,4...) and reverse steps. \usemodule[steps,mathml] \starttext \startSTEPtable \setupSTEPcells [alternative=5, framecolor=red

[NTG-context] Using input maps for ITRANS to devanagari with context m-iv

2013-12-23 Thread Shree Devi Kumar
am planning to use context-m-iv for some Sanskrit documents. Is it possible to use the input maps with Context m-iv ? Thanks, Shree Devi ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Devanagari in Siddhanta font with Context m-iv

2013-12-11 Thread Aditya Mahajan
On Tue, 10 Dec 2013, Shree Devi Kumar wrote: ​Thanks for your reply. I am using a goodies file for coloring the accents. I am attaching that as well as a MWE tex file and resulting pdf. Chandas is not fully unicode compliant for some of the accents which are encoded in PUA, hence I would

Re: [NTG-context] Devanagari in Siddhanta font with Context m-iv

2013-12-11 Thread Shree Devi Kumar
Aditya, sarvaartha should have the r maatraa on top of va - in case of siddhanta font when used in ConText the maatraa is not coming instead a dot seems visible halfway on va (I am assuming that you can read devanagari) - when you compare with Chandas the maatraa is clearly visible. so सर्वार्थ

[NTG-context] Devanagari in Siddhanta font with Context m-iv

2013-12-09 Thread Shree Devi Kumar
​I am converting some ITRANS documents with vedic accents to devanagari pdf files using Context. I tried both Chandas and Siddhanta fonts with it, I would prefer to use Siddhanta but in some cases the display is not coming correctly. eg. स॒र्वार्थ॑ in स॒र्व॒म॒ङ्ग॒लमा॒ङ्गल्ये॑ शि॒वे स॒र्वार्थ॑

Re: [NTG-context] Devanagari in Siddhanta font with Context m-iv

2013-12-09 Thread Wolfgang Schuster
Am 07.12.2013 um 15:21 schrieb Shree Devi Kumar shreesh...@gmail.com: ​I am converting some ITRANS documents with vedic accents to devanagari pdf files using Context. I tried both Chandas and Siddhanta fonts with it, I would prefer to use Siddhanta but in some cases the display is not

Re: [NTG-context] bar graphs, m-graph, sarith

2013-07-08 Thread John Kitzmiller
= (scantokens v1, scantokens v2); augment.p(x,0); augment.p(x,y); x := x + 0.4 ; augment.p(x,y); augment.p(x,0); Alan On Sat, 6 Jul 2013 22:01:06 -0400 John Kitzmiller k...@inradius.net wrote: When trying to make a bar graph with m-graph.mkiv and sarith, the command Ssub (string subtract

Re: [NTG-context] bar graphs, m-graph, sarith

2013-07-07 Thread Alan BRASLAU
On Sat, 6 Jul 2013 22:01:06 -0400 John Kitzmiller k...@inradius.net wrote: When trying to make a bar graph with m-graph.mkiv and sarith, the command Ssub (string subtract) seems to augment.p(v1 Sadd 0.4,v2);Sadd instead. An mwe of a bar graph: (data1 is a separate file containing 01 02 02

[NTG-context] bar graphs, m-graph, sarith

2013-07-06 Thread John Kitzmiller
When trying to make a bar graph with m-graph.mkiv and sarith, the command Ssub (string subtract) seems to Sadd instead. An mwe of a bar graph: (data1 is a separate file containing 01 02 02 03) \usemodule[m-graph] \startMPpage[instance=graph] input sarith; draw begingraph(5cm,5cm); gdata

Re: [NTG-context] Hiding columns in m-database TABLE

2012-11-23 Thread Philipp Gesang
···date: 2012-11-22, Thursday···from: Hans Hagen··· On 11/22/2012 3:36 PM, Marcin Borkowski wrote: Dnia 2012-11-22, o godz. 13:26:52 Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a): On Thu, Nov 22, 2012 at 12:57 PM, Marcin Borkowski wrote: le) in order to typeset a (nice) TABLE.

Re: [NTG-context] Hiding columns in m-database TABLE

2012-11-23 Thread Hans Hagen
On 11/23/2012 1:38 PM, Philipp Gesang wrote: although csv is not a standard per se there is nevertheless an rfc: http://tools.ietf.org/html/rfc4180. Can we have an optional rfc-compliant parser as well? That entails interpreting the first line as field header if it consists entirely of unquoted

[NTG-context] Hiding columns in m-database TABLE

2012-11-22 Thread Marcin Borkowski
Hi all, I'd like to process a csv file (with the database module) in order to typeset a (nice) TABLE. However, I have a few columns I'd like to omit. I can (of course) hand-edit the csv file; but is there a way to do it automatically? Something like \setupTABLE[column][3,4,5][kill] I did

Re: [NTG-context] Hiding columns in m-database TABLE

2012-11-22 Thread Mojca Miklavec
On Thu, Nov 22, 2012 at 12:57 PM, Marcin Borkowski wrote: le) in order to typeset a (nice) TABLE. However, I have a few columns I'd like to omit. I can (of course) hand-edit the csv file; but is there a way to do it automatically? Something like \setupTABLE[column][3,4,5][kill] I did

Re: [NTG-context] Hiding columns in m-database TABLE

2012-11-22 Thread Marcin Borkowski
Dnia 2012-11-22, o godz. 13:26:52 Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a): On Thu, Nov 22, 2012 at 12:57 PM, Marcin Borkowski wrote: le) in order to typeset a (nice) TABLE. However, I have a few columns I'd like to omit. I can (of course) hand-edit the csv file; but is

Re: [NTG-context] Hiding columns in m-database TABLE

2012-11-22 Thread Alan BRASLAU
For example, easily such files are easily manipulated using awk. awk {print $1,$2,$3,$5,$7} data.csv interesting.csv and this can be used in a pipeline... Alan On Thu, 22 Nov 2012 15:36:45 +0100 Marcin Borkowski mb...@wmi.amu.edu.pl wrote: Dnia 2012-11-22, o godz. 13:26:52 Mojca Miklavec

Re: [NTG-context] Hiding columns in m-database TABLE

2012-11-22 Thread Hans Hagen
On 11/22/2012 3:36 PM, Marcin Borkowski wrote: Dnia 2012-11-22, o godz. 13:26:52 Mojca Miklavec mojca.miklavec.li...@gmail.com napisał(a): On Thu, Nov 22, 2012 at 12:57 PM, Marcin Borkowski wrote: le) in order to typeset a (nice) TABLE. However, I have a few columns I'd like to omit. I can

[NTG-context] m-graph.mkiv format bug

2012-10-15 Thread Alan BRASLAU
There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. (I have not been able to fix the code...) Alan Minimal example: \usemodule [graph] \starttext \startMPpage label(format(@g,1e-10),(0, 0)) ; label(format(@g,1e+10),(2cm,0)) ; label(format

Re: [NTG-context] m-graph.mkiv format bug

2012-10-15 Thread Sietse Brouwer
There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. The function strip() is removing 0 throughout the exponent, and I don't know what purpose that might serve. If we never want to remove zeroes, this works: local function strip(s

Re: [NTG-context] m-graph.mkiv format bug

2012-10-15 Thread Alan BRASLAU
On Mon, 15 Oct 2012 12:08:30 +0200 Sietse Brouwer sbbrou...@gmail.com wrote: There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. The function strip() is removing 0 throughout the exponent, and I don't know what purpose that might serve. If we

Re: [NTG-context] m-graph.mkiv format bug

2012-10-15 Thread Alan BRASLAU
On Mon, 15 Oct 2012 12:27:27 +0200 Alan BRASLAU alan.bras...@cea.fr wrote: On Mon, 15 Oct 2012 12:08:30 +0200 Sietse Brouwer sbbrou...@gmail.com wrote: There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. The function strip() is removing

Re: [NTG-context] m-graph.mkiv format bug

2012-10-15 Thread Sietse Brouwer
: There is a bug with format() as redefined in m-graph.mkiv 1e10 and 1e-10 truncate the tailing 0. The function strip() is removing 0 throughout the exponent, and I don't know what purpose that might serve. If we never want to remove zeroes, this works: local function strip(s

Re: [NTG-context] m-graph.mkiv format bug

2012-10-15 Thread Alan BRASLAU
On Mon, 15 Oct 2012 13:03:40 +0200 Sietse Brouwer sbbrou...@gmail.com wrote: Alan wrote: Figured it out (and we don't want to strip a leading minus sign): local function strip(s) return \\times10^{..(s:gsub(%+*0*([1-9]),%1))..} end Better to anchor the pattern to the

[NTG-context] m-database: setting text style for every first line of a table, and text/cell style for specific parts of the table?

2012-05-05 Thread Sander Maijers
Hello everyone, I did manage to get a background color for the first row. This is a snippet that I use \defineseparatedlist [CSV] [separator=comma, first={\bTR[align=middle,background=color,backgroundcolor=gray]},last=\eTR,

Re: [NTG-context] error with m-database example

2012-02-16 Thread Hans Hagen
On 16-2-2012 12:03, Martin wrote: Admittedly I feel a bit lost when looking at the various processing modules... My goal is to create template based output. I have created a rough mail-merge example (with LibreOffice) and attached it as PDF for illustration. There is a CSV database with

[NTG-context] error with m-database example

2012-02-15 Thread Martin
Sorry to pick up an old topic (http://archive.contextgarden.net/message/20101221.082006.4dc83f26.en.html), but I seem to have the same problem with m-database at mentioned in this old thread. I am trying to freely use the data fields in a layout other than (natural) Tables. An update

Re: [NTG-context] error with m-database example

2012-02-15 Thread Wolfgang Schuster
Am 15.02.2012 um 16:06 schrieb Martin: Sorry to pick up an old topic (http://archive.contextgarden.net/message/20101221.082006.4dc83f26.en.html), but I seem to have the same problem with m-database at mentioned in this old thread. I am trying to freely use the data fields in a layout

Re: [NTG-context] error with m-database example

2012-02-15 Thread Martin
\unexpanded\def\SendMe#1#2{#1\crlf#2} Wolfgang Wolfgang, thanks, that worked for the sample code. However, when extended to three fields (I need 8) the field splitting gets rather messy. Thanks, Martin Modified code: \usemodule[database] \unexpanded\def\SendMe#1#2#3{#1\crlf#2\crlf#3}

Re: [NTG-context] error with m-database example

2012-02-15 Thread Wolfgang Schuster
Am 15.02.2012 um 21:54 schrieb Martin: \unexpanded\def\SendMe#1#2{#1\crlf#2} Wolfgang Wolfgang, thanks, that worked for the sample code. However, when extended to three fields (I need 8) the field splitting gets rather messy. I had to look at the example in the module for this and

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-12-01 Thread Pavneet Arora
Just for the sake of completeness, in case someone else stumbles upon this thread, it should be noted that \definefontfeature needs to be set before \setupbodyfont, i.e., \definefontfeature[default][default][onum=yes] \definefontfeature[smallcaps][smallcaps][onum=yes]

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Pavneet Arora
Many thanks Wolfgang! On 11-11-30 01:30 AM, Wolfgang Schuster wrote: Am 30.11.2011 um 02:19 schrieb Pavneet Arora: I enclose a minimal example as well as the output. It would seem that the \os causes the m-dash to come out as three hyphens. Is this the expected behavior? Write {\os 123

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Pavneet Arora
Schuster wrote: Am 30.11.2011 um 02:19 schrieb Pavneet Arora: I enclose a minimal example as well as the output. It would seem that the \os causes the m-dash to come out as three hyphens. Is this the expected behavior? Write {\os 123…}, context use a special fontfeature set (with the name

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Willi Egger
. I again enclose a small example with output. advTHANKSance. On 11-11-30 01:30 AM, Wolfgang Schuster wrote: Am 30.11.2011 um 02:19 schrieb Pavneet Arora: I enclose a minimal example as well as the output. It would seem that the \os causes the m-dash to come out as three hyphens

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Wolfgang Schuster
Am 30.11.2011 um 20:19 schrieb Pavneet Arora: Okay another anomaly: I used the example in the FAQs to try to set the feature across the entire document, which is really what I want.

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Pavneet Arora
Works a charm, Wolfgang. Thanks again. On 11-11-30 04:19 PM, Wolfgang Schuster wrote: Am 30.11.2011 um 20:19 schrieb Pavneet Arora: Okay another anomaly: I used the example in the FAQs to try to set the feature across the entire document, which is really what I want.

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Hans Hagen
On 30-11-2011 22:19, Wolfgang Schuster wrote: Am 30.11.2011 um 20:19 schrieb Pavneet Arora: Okay another anomaly: I used the example in the FAQs to try to set the feature across the entire document, which is really what I want.

[NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-29 Thread Pavneet Arora
I enclose a minimal example as well as the output. It would seem that the \os causes the m-dash to come out as three hyphens. Is this the expected behaviour? advTHANKSance. -- - - Pavneet Arora test.pdf Description: Adobe PDF document \starttext 1234567890 A Pause---between yes

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-29 Thread Wolfgang Schuster
Am 30.11.2011 um 02:19 schrieb Pavneet Arora: I enclose a minimal example as well as the output. It would seem that the \os causes the m-dash to come out as three hyphens. Is this the expected behavior? Write {\os 123…}, context use a special fontfeature set (with the name “just-os

Re: [NTG-context] [m-chart] Focus feature

2011-10-20 Thread Ian Lawrence
when using \usemodule[chart]: one gets an error message. (ConTeXt version 2011.10.19 00:02). It seems that in the file m-chart.mkvi there is a typo at line 277: one finds there \do_FLOW_commment instead of \do_FLOW_comment. Fixing this typo eliminates the error message

Re: [NTG-context] [m-chart] Focus feature

2011-10-20 Thread Hans Hagen
On 20-10-2011 10:43, Ian Lawrence wrote: Another one on flow cells: The latest beta adds an unwanted frame around the text ' radiations that ionise', for cells like: \startFLOWcell \name{episode_04_title} \location {1,5} \shape{7} \text[align=left]{{\bf

Re: [NTG-context] [m-chart] Focus feature

2011-10-20 Thread Hans Hagen
also connection parsing is more tolerant now: + left - right in addition to lr etc Dear Hans, The command \comment[r]{blabla} does not work anymore in mkiv when using \usemodule[chart]: one gets an error message. (ConTeXt version 2011.10.19 00:02). It seems that in the file m

Re: [NTG-context] [m-chart] Focus feature

2011-10-19 Thread Marco
On 2011-10-18 Hans Hagen pra...@wxs.nl wrote: On 18-10-2011 21:32, Marco wrote: Another issue: According to the manual, “action” should be the default shape. However, when no shape is specified, an error is raised. Is it a bug? fixed in next beta Thanks for the quick fix. It works

Re: [NTG-context] [m-chart] Focus feature

2011-10-19 Thread Otared Kavian
tolerant now: + left - right in addition to lr etc Dear Hans, The command \comment[r]{blabla} does not work anymore in mkiv when using \usemodule[chart]: one gets an error message. (ConTeXt version 2011.10.19 00:02). It seems that in the file m-chart.mkvi there is a typo

[NTG-context] [m-chart] Connections

2011-10-18 Thread Marco
Hi, I cannot figure out how to connect to the bottom right point (the small red one). Anyway, in the manual the shortcuts to address the individual points are not really explained. I blindly guess: tm - top middle t - top middle bl - bottom left br - bottom right bm - bottom centre b

Re: [NTG-context] [m-chart] Connections

2011-10-18 Thread Aditya Mahajan
On Tue, 18 Oct 2011, Marco wrote: Hi, I cannot figure out how to connect to the bottom right point (the small red one). Anyway, in the manual the shortcuts to address the individual points are not really explained. I blindly guess: tm - top middle t - top middle bl - bottom left

Re: [NTG-context] [m-chart] Connections

2011-10-18 Thread Marco
On 2011-10-18 Aditya Mahajan adit...@umich.edu wrote: t b r and l correspond to top, bottom, right, and left. The other two points are accessed throught t+ and t- etc. IIRC, for top and bottom, + corresponds to the right point and - to the left point; for left and right, +

Re: [NTG-context] [m-chart] Connections

2011-10-18 Thread Wolfgang Schuster
-p” to connect from the center of the bottom shape the left of the top shape, the two keywords “m” and “p” are synonyms for “-” (minus) and “+” (plus). Wolfgang ___ If your question is of interest to others as well

Re: [NTG-context] [m-chart] Connections

2011-10-18 Thread Aditya Mahajan
On Tue, 18 Oct 2011, Wolfgang Schuster wrote: Am 18.10.2011 um 18:14 schrieb Marco: On 2011-10-18 Aditya Mahajan adit...@umich.edu wrote: t b r and l correspond to top, bottom, right, and left. The other two points are accessed throught t+ and t- etc. IIRC, for top and bottom, +

Re: [NTG-context] [m-chart] Connections

2011-10-18 Thread Wolfgang Schuster
the location of the node but MkII had “n” as synonym for + which is now “m” in MkIV. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] [m-chart] Connections

2011-10-18 Thread Marco
On 2011-10-18 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: […] To be sure I looked for the correct input and also MkII expects the + and - before the location of the node but MkII had “n” as synonym for + which is now “m” in MkIV. I see. Thanks for checking the sources

[NTG-context] [m-chart] Focus feature

2011-10-18 Thread Marco
Hi, it's me with flow chars again. I didn't get the focus feature to work. The following example does not focus anything. Has the syntax changed or is the feature gone? %% \usemodule [chart] \setupFLOWfocus [framecolor=yellow] \setupFLOWcharts

Re: [NTG-context] [m-chart] Focus feature

2011-10-18 Thread Willi Egger
Hi It works here with version ConTeXt ver: 2011.07.19 11:22 MKIV incl. the autofocus feature. It does not put the focus color in version ConTeXt ver: 2011.10.14 22:47 MKIV, nor does the autofocus feature work. (Hans, however it does work again with the experimental version 2011.10.10 13:38

Re: [NTG-context] [m-chart] Focus feature

2011-10-18 Thread Hans Hagen
On 18-10-2011 22:07, Willi Egger wrote: Hi It works here with version ConTeXt ver: 2011.07.19 11:22 MKIV incl. the autofocus feature. It does not put the focus color in version ConTeXt ver: 2011.10.14 22:47 MKIV, nor does the autofocus feature work. (Hans, however it does work again with

Re: [NTG-context] [m-chart] Focus feature

2011-10-18 Thread Marco
On 2011-10-18 Willi Egger cont...@boede.nl wrote: Hi It works here with version ConTeXt ver: 2011.07.19 11:22 MKIV incl. the autofocus feature. It does not put the focus color in version ConTeXt ver: 2011.10.14 22:47 MKIV, nor does the autofocus feature work. Thanks for testing.

Re: [NTG-context] [m-chart] Focus feature

2011-10-18 Thread Hans Hagen
On 18-10-2011 21:32, Marco wrote: Another issue: According to the manual, “action” should be the default shape. However, when no shape is specified, an error is raised. Is it a bug? fixed in next beta also connection parsing is more tolerant now: + left - right in addition to lr etc

[NTG-context] I do not get a highlighted header with M-database

2011-06-03 Thread Cecil Westerhof
I looked at the example at: http://wiki.contextgarden.net/M-database In this example the first row is highlighted. I tried something like that, but I do not get a highlighted first row. I attached my tex and pdf file. What am I doing wrong? -- Cecil Westerhof dummy.tex Description: TeX

Re: [NTG-context] I do not get a highlighted header with M-database

2011-06-03 Thread Marco
On 2011-06-03 Cecil Westerhof cldwester...@gmail.com wrote: I looked at the example at: http://wiki.contextgarden.net/M-database In this example the first row is highlighted. I tried something like that, but I do not get a highlighted first row. I attached my tex and pdf

Re: [NTG-context] I do not get a highlighted header with M-database

2011-06-03 Thread Mojca Miklavec
On Fri, Jun 3, 2011 at 18:23, Marco wrote: The example on the wiki is not exact. You can use view source/edit to see the full source. Yes, it is a tiny simplification. Mojca ___ If your question is of interest to

Re: [NTG-context] I do not get a highlighted header with M-database

2011-06-03 Thread Cecil Westerhof
2011/6/3 Marco net...@lavabit.com: I looked at the example at:     http://wiki.contextgarden.net/M-database In this  example the first  row is highlighted.  I tried something  like that,  but I  do not  get a  highlighted first row.  I attached my  tex and  pdf file. What  am I doing wrong

[NTG-context] m-obsolete mkii problem

2011-03-31 Thread Mojca Miklavec
Dear Hans, would it be possible to change the following line in m-obsolete.tex \writestatus\m!system{skipping obsolete module} so that it wouldn't generate errors (undefined m!system) when compiling with mkii? (I suspect that it is connected with bib module, but I'm not sure). Thanks a lot

Re: [NTG-context] m-obsolete mkii problem

2011-03-31 Thread Zhichu Chen
I think I've reported that feature a few days ago. It could be \m!systems, so I have to define \m!system as \m!systems before loading the bib module. On Thu, Mar 31, 2011 at 6:55 PM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: Dear Hans, would it be possible to change the following

[NTG-context] m-obsolete.tex has an undefined control sequence

2011-03-02 Thread Zhichu Chen
Hi Hans, I guess it should be \writestatus\m!system{skipping obsolete module} but somehow the file in the latest beta reads \writestatus\m!systems{skipping obsolete module} I have to define this macro to \def\m!systems{\m!system} before loading the bib module so that I can keep the system

Re: [NTG-context] error with m-database example

2010-12-21 Thread Florian Wobbe
On Dec 20, 2010, at 22:32 , Hans Hagen wrote: On 20-12-2010 5:56, Mojca Miklavec wrote: On Sun, Dec 19, 2010 at 20:37, Florian Wobbe wrote: Hi, The example from http://wiki.contextgarden.net/m-database gives me an error. ! LuaTeX error ...t-beta/texmf-context/tex/context/base/m

Re: [NTG-context] error with m-database example

2010-12-20 Thread Mojca Miklavec
On Sun, Dec 19, 2010 at 20:37, Florian Wobbe wrote: Hi, The example from http://wiki.contextgarden.net/m-database gives me an error. ! LuaTeX error ...t-beta/texmf-context/tex/context/base/m-database.lua:74: bad argument #2 to 'lpegmatch' (string expected, got nil) stack traceback

  1   2   3   >